import requests
from flask import Flask, request, jsonify, render_template, send_from_directory
import datetime
from flask_jwt_extended import create_access_token,JWTManager, get_jwt_identity, jwt_required, get_jwt
from os import path
import pymysql
from flask_cors import CORS
import random
import base64
import json
import os
import time


app = Flask(__name__)
CORS(app)
app.config['JWT_SECRET_KEY'] = 'sdfdsfdsf'
jwt = JWTManager()
jwt.init_app(app)



@app.route('/test', methods=['GET'])
def test():
    return jsonify({'message': 'success'})


if __name__ == '__main__':
    app.run(port='7921', host='0.0.0.0', threaded=True)

